<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box1{
            width: 100px;
            height: 100px;
            position: absolute;
            left: 100px;
            top: 150px;
            background-color: antiquewhite;
        }
        .box2{
            width: 300px;
            height: 300px;
            background-color: aquamarine;
        }
        .box3{
            width: 200px;
            height: 200px;
            background-color: pink;
            position: absolute;
            left: 20px;
            top:30px;
        }
    </style>
</head>
<body>
    
    <div class="box1"></div>
    <div class="box2"></div>
    <div class="box3"></div>
    

    <p>box之间存在压盖关系 此时有三层元素</p>
</body>
</html>